package com.example.lenovo.testdemo.utils;

import android.content.Context;

import com.afollestad.materialdialogs.MaterialDialog;
import com.example.lenovo.testdemo.R;

/**
 * Created by Lenovo on 2017/11/21.
 */

public class DialogUtil {
    private static MaterialDialog dialog;
    public static MaterialDialog showDialog(Context context){
        boolean wrapInScrollView = true;
        dialog = new MaterialDialog.Builder(context).customView(R.layout.dialog_progress , wrapInScrollView).positiveText("隐藏").show();
        return dialog;
    }
}
